package cn.xtcode;

import cn.xtcode.infrastructure.dcc.DCCService;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@Configurable
@EnableScheduling
public class Application {
    public static void main(String[] args){
        ConfigurableApplicationContext run = SpringApplication.run(Application.class);

        DCCService bean = run.getBean(DCCService.class);

        System.out.println(bean);
    }
}
